package com.shunda.common.core.domain.entity;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shunda.common.annotation.Excel;
import com.shunda.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 【请填写功能名称】对象 sys_oil_price
 *
 * @author shunda
 * @date 2025-03-27
 */
public class SysOilPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 加油站id */
    @Excel(name = "加油站id")
    private Long deptId;

    /** 油品类型（汽油、柴油等） */
    @Excel(name = "油品类型", readConverterExp = "汽=油、柴油等")
    private String oilType;

    /** 油品编号 */
    @Excel(name = "油品编号")
    private String oilCode;

    /** 油品单价/升 */
    @Excel(name = "油品单价/升")
    private BigDecimal oilUnitPrice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setOilType(String oilType)
    {
        this.oilType = oilType;
    }

    public String getOilType()
    {
        return oilType;
    }
    public void setOilCode(String oilCode)
    {
        this.oilCode = oilCode;
    }

    public String getOilCode()
    {
        return oilCode;
    }
    public void setOilUnitPrice(BigDecimal oilUnitPrice)
    {
        this.oilUnitPrice = oilUnitPrice;
    }

    public BigDecimal getOilUnitPrice()
    {
        return oilUnitPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("oilType", getOilType())
            .append("oilCode", getOilCode())
            .append("oilUnitPrice", getOilUnitPrice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
